package com.sinog.core.model;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * @desc mybatis基础实体类
 * @author zy
 * @date 2019年6月20日 15点49分
 */
public class BaseEntity<T extends Model<?>> extends Model<T> {

    private static final long serialVersionUID = -3801111808856004060L;
    protected Long id;

    @Override
    protected Serializable pkVal() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }
}